﻿function CheckAddValue()
{
    var prefix = "ctl00_ContentPlaceHolder1_";
    var newstype = document.getElementById(prefix + "ddlNewsType");
    var title = document.getElementById(prefix + "txtTitle");

    if (newstype.value == "-1")
    {
        alert("请选择类别！");
        newstype.focus();
        return false;
    }
    if (title.value.length == 0)
    {
        alert("请填写标题！");
        title.focus();
        return false;
    }
    return true;
}